<#import "../tpl/pageTep.ftl" as page>
<@page.pageBase currentMenu="提现审批">
<div class="xm-offline">
    <div class="row">
        <div class="panel">
            <div class="returnBtn panel-header">
                <a href="${basepath}/manage/wallet/toCheckList">返回上一级</a>
            </div>
            <div class="panel-body">
                <form id="detailForm" class="form-horizontal">
                    <input type="hidden" class="control-text span-width span10" name="id" value="${e.id!}">

                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            提现人：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="applicantName"
                                   disabled="disabled" value="${e.applicantName!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            提现金额：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="money"
                                   disabled="disabled" value="${e.money!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            账号类型：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="accountType"
                                   disabled="disabled" value="" id="accountType"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            收款账号：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="payAccount"
                                   disabled="disabled" value="${e.payAccount!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            收款人：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="payee"
                                   disabled="disabled" value="${e.payee!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            预留手机号：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="payeePhone"
                                   disabled="disabled" value="${e.payeePhone!}"/>
                        </div>
                    </div>
                    <div class="centered">
                        <a class="button  button-large button-success" id="btnShow">审核</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<#-------------------------------------------------------编辑审核状态 begin-------------------------------------------------------->
<div id="editContent" style="display:none;">
    <form id="editForm" class="form-horizontal" action="${basepath}/manage/wallet/updateJson" method="post">
        <input type="hidden" class="input-normal control-text" name="id" value="${e.id!}"/>

        <div class="row">
            <div class="control-group span16">
                <label class="control-label">审核状态：</label>

                <div class="controls control-row4">
                    <select data-rules="{required:true}" name="status" value="${e.status!}" id="status">
                        <option value="">-请选择-</option>
                        <option value="2">通过</option>
                        <option value="3">不通过</option>
                    </select>
                </div>
            </div>
        </div>
    </form>
<#-------------------------------------------------------审核状态 end-------------------------------------------------------->
</div>
<script>
    var Grid = BUI.Grid;
    var Store = BUI.Data.Store;
    var Overlay = BUI.Overlay;
    var editForm = new BUI.Form.Form({
        srcNode: '#editForm',
        submitType: 'ajax',
        callback: function (data) {
            window.location.href = "${basepath}/manage/wallet/toCheckList"
        }
    });
    editForm.render();
    var editDialog = new BUI.Overlay.Dialog({
        title: '编辑审核状态',
        width: 500,
        height: 120,
        contentId: 'editContent',
        success: function () {
            editForm.ajaxSubmit();
        }
    });
    //编辑按钮事件
    $('#btnShow').on('click', function () {
        editDialog.show();
    });
    var type = '${e.accountType!}';
    if (type == '1') {
        $("#accountType").val("支付宝");
    } else if (type == '2') {
        $("#accountType").val("微信");
    } else if (type == '3') {
        $("#accountType").val("银行卡");
    }
</script>



</@page.pageBase>